package cn.wolfcode.wolf2w.serch.query;

import cn.wolfcode.wolf2w.query.QueryObject;

/**
 * 查询相关
 */


public class SearchQueryObject extends QueryObject {
//接收的参数
    /*
    <li class="tab-selected" data-index="-1"><i></i>全部</li>
                        <li data-index="0"><i></i>目的地</li>
                        <li data-index="1"><i></i>攻略</li>
                        <li data-index="2"><i></i>游记</li>
                        <li data-index="3"><i></i>找人</li>
     */
    public static final int TYPE_ALL = -1;  //所有
    public static final int TYPE_DEST = 0;  //目的地
    public static final int TYPE_STRATEGY = 1;  //攻略
    public static final int TYPE_TRAVEL = 2;  //游记
    public static final int TYPE_USER = 3;  //用户

    private int type;

    public static int getTypeAll() {
        return TYPE_ALL;
    }

    public static int getTypeDest() {
        return TYPE_DEST;
    }

    public static int getTypeStrategy() {
        return TYPE_STRATEGY;
    }

    public static int getTypeTravel() {
        return TYPE_TRAVEL;
    }

    public static int getTypeUser() {
        return TYPE_USER;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type=type;
    }
}
